<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<div class="top">
	<div class="w_980 m">
    	<div class="top_about">
    	<!-- 判断用户是否登陆 -->
    	<c:if test="${user!=null}">
    	    <div class="fl_l">您好 ,<span>${user.username}</span>  欢迎来到五金商城！</div>  
    	</c:if>
    	<c:if test="${user==null}">
       		 <div class="fl_l">您好，欢迎来到五金商城！[<a href="<%=request.getContextPath() %>/user/toLogin" class="redfont">请登录</a>]，新用户？[<a href="<%=request.getContextPath() %>/user/toRegist" class="redfont">免费注册</a>]</div>  
  		</c:if>
  <ul class="fl_r">
        	<li><a href="">我的订单</a></li>
        	<li><a href="">我的购物车</a></li>
        	<li><a href="<%=request.getContextPath() %>/welcome/yhzx_hyy">个人中心</a></li>        	
        	<li class="bg_none"><a href="">帮助中心</a></li>                                    
        </ul>
        </div>
    </div>
</div>
<div class="w_980 m">
	<div class="logo fl_l"><a href=" "><img src="<%=request.getContextPath() %>/images/logo.jpg" width="162" height="50" /></a></div>
	<div class="nav fl_l">
    	<ul>
       	  <li class="select"><a href="<%=request.getContextPath() %>/wel/toIndex">首页</a></li>
<!-- 展示一级分类 -->
       	  <c:forEach items="${categoryList}" var="l" begin="0" end="6">
	       	  <li><a href="<%=request.getContextPath() %>/categorysecond/category?cid=${l.cid}">${l.cname}</a></li>                                               
       	  </c:forEach>
        </ul>
    </div>
</div>
<div style="clear:both;"></div>
<div class="nav_bg">
	<div class="w_980 m">
    	
    	<input name="" type="button" class="search_btn fl_l" value="搜索"/> 
    	<input name="" type="text" class="search_input fl_l " width="100" />
    	
  </div>
</div>

</body>
</html>